class MenuButton < Gtk::Button

	def initialize(image)
		super()
		self.relief = Gtk::RELIEF_NONE
		self.modify_bg(Gtk::STATE_NORMAL, $conf.bg)
		if image.class == Symbol # stock
			self << Gtk::Image.new(image, Gtk::IconSize::LARGE_TOOLBAR)
		elsif image.class == String
			self << Gtk::Image.new("#{DIR}/src/" + image)
		end
	end

end

class MenuToggleButton < Gtk::ToggleButton

	def initialize(image)
		super()
		self.relief = Gtk::RELIEF_NONE
		self.modify_bg(Gtk::STATE_NORMAL, $conf.bg)
		if image.class == Symbol # stock
			self << Gtk::Image.new(image, Gtk::IconSize::LARGE_TOOLBAR)
		elsif image.class == String
			self << Gtk::Image.new("#{DIR}/src/" + image)
		end
	end

end
